<?php
/**
 * 三方查询统一类
 * 获取三方的审核状态、费率、实名认证二维码
 * User: 13651
 * Time: 2025/10/27 11:48
 */

namespace App\Api\Controllers\HuiPay;

use App\Api\Controllers\BaseController;
use App\Param\LeshuaUnion\GetChannelDetailsParams;
use App\Services\HuifuService;
use App\Traits\ResponseTrait;

class TrilateralBaseQueryController  extends BaseController
{
    use ResponseTrait;
    /**
     * 获取汇付进件状态
     * @return string
     */
    public function getStatusQuery()
    {
        $params = GetChannelDetailsParams::create();
        $data = HuifuService::getInstance()->getStatusQuery($params);
        if (is_string($data))
            return $data;
        return $this->successResponse('success', $data);
    }
}